Skip Headers

Oracle® Objects for OLE C++ Class Library Developer's Guide 10g Release 2 (10.2) Part Number B14308-01 |
Home | Book List | Contents | Index | Master Index | Feedback

# OSessionCollection

The OSessionCollection object is the set of sessions that exists for a given client. You can get OSessionCollection objects from an OClient object using the GetSessions method. OSessionCollection is a subclass of OOracleCollection.

The OSessionCollection is dynamic: it always reflects the current set of sessions of the client it came from, even if the sessions are added after you get the collection. It is read-only. You cannot add sessions through the collection.

You can obtain individual OSessions from an OSessionCollection using the GetSession method.

The OSessionCollection class supports the following methods:

Construction and destruction:

OSessionCollection

~OSessionCollection

operator=

Attributes:

operator==

operator!=

GetCount

IsOpen

Operations:

Close

GetSession

Error Handling:

ErrorNumber

ErrorReset

GetErrorText

LookupErrorText